projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
926b855
)
tests: Plug memory leaks
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 27 Mar 2021 23:56:36 +0000
(19:56 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 28 Mar 2021 01:03:43 +0000
(21:03 -0400)
This one was pointed out by asan.
testsuite/gdk/pixbuf.c
patch
|
blob
|
history
diff --git
a/testsuite/gdk/pixbuf.c
b/testsuite/gdk/pixbuf.c
index 592f5d0d320b0c55eb70ae574e78992a21b314dc..8e34254074e00df88b1b7f433f55c20466cc58d1 100644
(file)
--- a/
testsuite/gdk/pixbuf.c
+++ b/
testsuite/gdk/pixbuf.c
@@
-14,7
+14,7
@@
main (int argc, char *argv[])
for (GSList *l = formats; l; l = l->next)
{
GdkPixbufFormat *format = l->data;
- c
onst c
har *name;
+ char *name;
name = gdk_pixbuf_format_get_name (format);
@@
-22,6
+22,8
@@
main (int argc, char *argv[])
have_png = TRUE;
else if (strcmp (name, "jpeg") == 0)
have_jpeg = TRUE;
+
+ g_free (name);
}
if (!have_png || !have_jpeg)